package cn.zyjblogs.netty.dubborpc.provider;


import cn.zyjblogs.netty.dubborpc.publicinterface.HelloService;
import io.netty.util.internal.StringUtil;

public class HelloServiceImpl implements HelloService {
    @Override
    public String hello(String msg) {
        System.out.println("收到客户端消息: "+msg);
        //更加mes 返回不同的结果
        if (msg != null && msg != ""){
            return "你好客户端，我已经收到你的消息 ["+msg+"]";
        }
        return "你好客户端，我已经收到你的消息";
    }
}
